package com.lxw.oa.controller.common;

import com.lxw.oa.util.LogAopIn;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


@Controller
@EnableTransactionManagement
public class helpController {
    @LogAopIn(moduleName="帮助中心-反馈处理",option="页面初始化")
    @GetMapping("/toHelpCenter")
    public void Log_toHelpCenter(HttpServletResponse response) {
        try {
            response.sendRedirect("http://47.107.121.240:8090/HelpCenter/questionPage/toQuestionPage.do");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @LogAopIn(moduleName="帮助中心-用户反馈",option="页面初始化")
    @GetMapping("/toHelpCenterUser")
    public void Log_toHelpCenterUser(HttpServletResponse response) {
        try {
            response.sendRedirect("http://47.107.121.240:8090/HelpCenter/index/search.do");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
